@import '../../styles/index';

.live-dock {
  padding-left: 16px;
  position: relative;
  z-index: 1000;
  width: 28%;
  box-sizing: border-box;
  height: 100%;
  border-left: 1px solid var(--border);

  &.can-animate {
    transition: width 300ms;
  }

  &.live-dock--left {
    padding-left: 0;
    padding-right: 16px;
    border-right: 1px solid var(--border);
    background-color: var(--section);
  }

  @media (max-width: 1070px) {
    display: none;
  }
}

.live-dock--left {
  .live-dock-chevron {
    right: 0;
    left: auto;
  }

  .live-dock-expanded-contents {
    border-right: 1px solid var(--border);
    border-left: none;
  }
}

.live-dock.collapsed {
  width: 20px !important;
  padding: 0;

  .live-dock-chevron {
    .center();

    border: none;
  }
}

.live-dock-chevron {
  width: 16px;
  height: 20px;
  position: absolute;
  top: 0;
  left: 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;

  i {
    .center();

    font-size: 12px;

    &:global(.icon-right) {
      transform: translate(-50%, -50%) rotate(-90deg);
    }
  }
}

.live-dock-end-stream {
  margin-left: 10px;
}

.live-dock-header {
  .margin-bottom();

  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.live-dock-text {
  .weight(@medium);

  margin: 0 2px 0 4px;
}

.live-dock-expanded-contents {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 16px;
  border-left: 1px solid var(--border);
}

.live-dock-info {
  .margin-bottom();

  display: flex;
  justify-content: space-between;

  .live-dock-platform-tools {
    a,
    i {
      padding: 0 8px;
    }
  }
}

.live-dock-viewer-count {
  .flex();
  .flex--center();

  i {
    .margin-right();
  }

  .live-dock-viewer-count-toggle {
    opacity: 0;
    cursor: pointer;
  }

  &:hover {
    .live-dock-viewer-count-toggle {
      opacity: 1;
    }
  }
}

.live-dock-viewer-count__count {
  padding-right: 3px;
}

.live-dock-chat {
  .flex();
  .flex--column();
  .flex--grow();
}

.live-dock-chat--offline {
  height: 100%;
}

.live-dock-chat__img--offline {
  .flex();
  .flex--center();
  .flex--column();

  width: 60%;
  margin-bottom: 16px;
}

.live-dock-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--warning);
  margin: 0 8px;
  box-shadow: 0 0 0 rgba(252, 62, 63, 0.4);

  &.live-dock-offline {
    background: var(--icon);
    animation: none;
  }
}

.live-dock-platform-tools {
  .flex();
  gap: 16px;
}

.live-dock-chat-apps__popout {
  .padding();
  .cursor--pointer();
}

.live-dock-platform-app-webview {
  .flex--grow();
}
